﻿using Lists;
using Users;
using Sim;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sim;

namespace Sim
{
    class PresenterSignUp
    {
        public ISignUp _view { get; set; }
        public IUserList _modelUserList { get; set; }
        
        public PresenterSignUp(ISignUp view, UserList ul)
        {
            this._view = view;
            this._modelUserList = ul;
            this._view.EventSignUp += NewSignUp;
        }

        public void NewSignUp(User u)
        {
            Program.ca.registerUser(u);
        }
    }
}
